<?php namespace simpleFlow;

use simpleFlow\Object as SFObject;

/**
 * Read config file and parse in array
 * @package simpleFlw
 * @author Guilherme Fontenele
 */
class Config extends SFObject
{
	/**
	 * Read a config file
	 * @param string $strFile Config file name
	 * @return array File parsed in array
	 */
	public static function readFile($strFile)
	{
		if(!\file_exists($strFile)) { throw new InvalidArgumentException('File not exists: '.$strFile); }
		else { return \parse_ini_file($strFile, true); }
	}
}

?>